// @ts-ignore
/* eslint-disable */
import { OpenApi as request } from "@/utils/request";

/** 相册文件删除 POST /platform/albums/albumDel */
export async function albumDel1(
  body: API.IdsDto,
  options?: { [key: string]: any }
) {
  return request<API.BaseResponseBoolean>(
    `/barter-user/platform/albums/albumDel`,
    {
      method: "POST",
      headers: {
        "Content-Type": "application/json",
      },
      data: body,
      ...(options || {}),
    }
  );
}

/** 相册文件列表 GET /platform/albums/albumList */
export async function albumList1(
  // 叠加生成的Param类型 (非body参数swagger默认没有生成对象)
  params: API.albumList1Params,
  options?: { [key: string]: any }
) {
  return request<API.BaseResponsePageRespAlbumVo>(
    `/barter-user/platform/albums/albumList`,
    {
      method: "GET",
      params: {
        ...params,
      },
      ...(options || {}),
    }
  );
}

/** 相册文件移动 POST /platform/albums/albumMove */
export async function albumMove1(
  body: API.AlbumMoveDto,
  options?: { [key: string]: any }
) {
  return request<API.BaseResponseBoolean>(
    `/barter-user/platform/albums/albumMove`,
    {
      method: "POST",
      headers: {
        "Content-Type": "application/json",
      },
      data: body,
      ...(options || {}),
    }
  );
}

/** 相册文件重命名 POST /platform/albums/albumRename */
export async function albumRename1(
  body: API.AlbumRenameDto,
  options?: { [key: string]: any }
) {
  return request<API.BaseResponseBoolean>(
    `/barter-user/platform/albums/albumRename`,
    {
      method: "POST",
      headers: {
        "Content-Type": "application/json",
      },
      data: body,
      ...(options || {}),
    }
  );
}

/** 相册分类新增 POST /platform/albums/cateAdd */
export async function cateAdd1(
  body: API.AlbumCateDto,
  options?: { [key: string]: any }
) {
  return request<API.BaseResponseBoolean>(
    `/barter-user/platform/albums/cateAdd`,
    {
      method: "POST",
      headers: {
        "Content-Type": "application/json",
      },
      data: body,
      ...(options || {}),
    }
  );
}

/** 相册分类删除 POST /platform/albums/cateDel */
export async function cateDel1(
  body: API.IdDto,
  options?: { [key: string]: any }
) {
  return request<API.BaseResponseBoolean>(
    `/barter-user/platform/albums/cateDel`,
    {
      method: "POST",
      headers: {
        "Content-Type": "application/json",
      },
      data: body,
      ...(options || {}),
    }
  );
}

/** 相册分类列表 GET /platform/albums/cateList */
export async function cateList1(
  // 叠加生成的Param类型 (非body参数swagger默认没有生成对象)
  params: API.cateList1Params,
  options?: { [key: string]: any }
) {
  return request<API.BaseResponseListAlbumCateVo>(
    `/barter-user/platform/albums/cateList`,
    {
      method: "GET",
      params: {
        ...params,
      },
      ...(options || {}),
    }
  );
}

/** 相册分类重命名 POST /platform/albums/cateRename */
export async function cateRename1(
  body: API.AlbumRenameDto,
  options?: { [key: string]: any }
) {
  return request<API.BaseResponseBoolean>(
    `/barter-user/platform/albums/cateRename`,
    {
      method: "POST",
      headers: {
        "Content-Type": "application/json",
      },
      data: body,
      ...(options || {}),
    }
  );
}
